using System;
using System.Web.UI;
using PetShop.Web.Controls;
using PetShop.Web.WebComponents;

namespace PetShop.Web
{
    public partial class MyAccount : Page
    {
        protected NavBar header;

        private void InitializeComponent()
        {
        }

        protected override void OnLoad(EventArgs e)
        {
            string pageAction = CleanString.InputText(Request["action"], 20);

            switch (pageAction)
            {
                case "create":
                    lblMessage.Text = "Your account was successfully created.";
                    break;

                case "update":
                    lblMessage.Text = "Your account was successfully updated.";
                    break;

                case "signIn":
                    lblMessage.Text = "Welcome to the .NET Pet Shop Redux Demo for our SIG session.";
                    break;
            }
        }
    }
}